
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<%
        request.setAttribute("nombrePagina", "Listar Chequera");
%>

<f:view>
    <%@include file="/WEB-INF/jspf/header.jspf" %>

<h:messages id="messages" styleClass="messages_content" layout="table" errorClass="error" warnClass="warn" infoClass="info"/>

    <%-- >>>> INICIO MODULO Seleccionado <<< --%>
    <h:form id="frmListarChequera">
        <h3>CHEQUERAS REGISTRADAS </h3>
        <t:panelGrid columns="2" >
            <h:commandButton id="btnNuevo" value="Nueva Chequera" action="#{ChequeraController.nuevo}"/>
            <h:commandButton id="btnIndex" value="Inicio" action="#{ChequeraController.index}"/>
        </t:panelGrid>
        <br/>
        
        <h:dataTable id="tblChequera"
                     value="#{ChequeraController.chequeras}"
                     var="item" bgcolor="#F1F1F1" border="10" cellpadding="5"
                     cellspacing="3" first="0"
                     frame="hsides" rules="all"
                     summary="Esta es la Lista de Chequeras Ingresadas"
                     rowClasses="TableRow1,TableRow2" columnClasses="TableColumn"
                     styleClass="TableClass" headerClass="TableHeader" footerClass="TableFooter" >
            <h:column>
                <f:facet name="header"><h:outputText value="NUMERO"/></f:facet>
                <h:outputText value="#{item.idChequera}" />
            </h:column>
            <h:column>
                <f:facet name="header"><h:outputText value="SERIE"/></f:facet>
                <h:outputText value="#{item.serie}" />
            </h:column>
            <h:column>
                <f:facet name="header"><h:outputText value="TIPO"/></f:facet>
                <h:outputText value="#{item.tipo}" />
            </h:column>
            <h:column>
                <f:facet name="header"><h:outputText value="CANT. HOJAS"/></f:facet>
                <h:outputText value="#{item.cantidadHojas}" />
            </h:column>
            <h:column>
                <f:facet name="header"><h:outputText value="NRO. CUENTA"/></f:facet>
                <h:outputText value="#{item.fidPltCuenta.nroCuenta}" />
            </h:column>
            <h:column>
                <h:commandLink id="btnEliminar" value="Eliminar" action="#{ChequeraController.eliminar}">
                    <f:setPropertyActionListener target="#{ChequeraController.chequera}" value="#{item}" />
                </h:commandLink>
            </h:column>
        </h:dataTable>
    </h:form>

    <%@include file="/WEB-INF/jspf/footer.jspf" %>
</f:view>